﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QBZ.Evaluation.Repositories.DataAccess
{
    [Table("tb_evaluation")]
    public partial class TbEvaluation
    {
        [Key]
        public int EvaluationId { get; set; }

        public int EvaluationFrom { get; set; }

        [ForeignKey("EvaluationFrom")]
        public virtual TbUser FromUser { get; set; }

        public int EvaluationTo { get; set; }

        [ForeignKey("EvaluationTo")]
        public virtual TbUser ToUser { get; set; }

        public int LevelInt { get; set; }

        public int SessionId { get; set; }

        [ForeignKey("SessionId")]
        public virtual TbSession Session { get; set; }

        public int SkillChildId { get; set; }

        [ForeignKey("SkillChildId")]
        public virtual TbSkillChild SkillChild { get; set; }

        public bool EvaluationIsDelete { get; set; }

        public DateTime CreateOn { get; set; }

        public int CreateBy { get; set; }

        public DateTime? UpdateOn { get; set; }

        public int? UpdateBy { get; set; }

        [Timestamp]
        public byte[] TimeStamp { get; set; }

        public Guid Guid { get; set; }
    }
}